﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Xml;

namespace FourSquareNETCFLibrary
{
    public class special
    {
        private string _id;
        private string _type;
        private string _message;
        private venue _venue;
        
        public special(XmlNode Xml)
        {
            XmlNodeList xnl = Xml.ChildNodes;
            foreach (XmlNode xn in xnl)
            {
                switch (xn.Name)
                {
                    case "id":
                        this._id = xn.InnerText;
                        break;
                    case "type":
                        this._type = xn.InnerText;
                        break;
                    case "message":
                        this._message = xn.InnerText;
                        break;
                    case "venue":
                        this._venue = new venue(xn);
                        break;
                }
            }
        }

        public string Id
        {
            get
            {
                return this._id;
            }
        }

        public string Type
        {
            get
            {
                return this._type;
            }
        }

        public string Message
        {
            get
            {
                return this._message;
            }
        }

        public venue Venue
        {
            get
            {
                return this._venue;
            }
        }
    }
}
